import 'package:flutter/material.dart';

/// 个人中心快捷数据显示
class ItemOptionWithCount extends StatelessWidget {
  final int count;
  final String text;

  const ItemOptionWithCount(
      {Key key, @required this.count, @required this.text})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 130,
      alignment: Alignment.center,
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          Text('$count',
              style: TextStyle(
                  color: Theme.of(context).primaryColor, fontSize: 34)),
          Container(
            margin: EdgeInsets.only(top: 5),
            child: Text(text),
          ),
        ],
      ),
    );
  }
}
